<style type="text/css">
    .content {
        white-space: normal;
        word-break: break-all;
    }

    .operate {
        white-space: nowrap;
    }
</style>
<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset id="searchFieldset_currentTable" class="table-search-fieldset">
            <legend>{:lang("common.condition_search")}</legend>
            <form class="layui-form layui-form-pane form-search">
                <div class="layui-form-item layui-inline" style="margin-left:50px">
                    <button type="submit" class="layui-btn layui-btn-normal" data-type="tableSearch"
                            lay-submit>{:lang("common.btn_search")}
                    </button>
                </div>
            </form>
        </fieldset>

        <table class="layui-table">
            <thead>
            <tr>
                <th>{:lang('common.numbers')}</th>
                <th>{:lang('amass.type')}</th>
                <th>{:lang('amass.travel_count')}</th>
                <th>{:lang('amass.person_num')}</th>
            </tr>
            </thead>
            <tbody>
            {foreach $list as $idx=>$vo }
            <tr>
                <td>{$idx+1}</td>
                <td data-type-list="amass_type_list" data-value="{$vo.type}"></td>
                <td data-field="travel_count">{$vo.travel_count}</td>
                <td data-field="person_num">
                    <a href="#" onclick="return openDetail({$vo.type})">{$vo.person_num}</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
            <tfoot>
            <tr class="layui-table-total auto-compute-total">
                <td colspan="2">{:lang('common.total')}</td>
                <td data-field="travel_count"></td>
                <td data-field="person_num"></td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>
<script>
    layui.use(['myApp'], function () {
        let $ = layui.jquery
            , myCommon = layui.myCommon;
        window.openDetail = function (type) {
            let param = myCommon.generateParams();
            param['a_type_eq'] = type;
            return popupWindow('{:lang("amass.list_title")}', 'query.amass/index?' + $.param(param));
        }
        myCommon.listen();
    });
</script>
